package org.example.response;

public enum ResponseState {

    SUCCESS("操作成功", 20000, true),
    LOGIN_SUCCESS("登录成功", 20001, true),
    JOIN_IN_SUCCESS("注册成功", 20002, true),
    FAILURE("操作失败", 40000, false);

    ResponseState(String message, int code, boolean success) {
        this.message = message;
        this.code = code;
        this.success = success;
    }

    private String message;
    private int code;
    private boolean success;

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }
}
